package com.esayread.data

/**
 * 用于在界面间传递扫描结果的单例类
 */
object ScanResultHolder {
    private var _scannedBooks: List<Book> = emptyList()
    
    fun setScannedBooks(books: List<Book>) {
        _scannedBooks = books
    }
    
    fun getScannedBooks(): List<Book> {
        return _scannedBooks
    }
    
    fun clearScannedBooks() {
        _scannedBooks = emptyList()
    }
}